package com.drcoffee.drcoffeemall.service;

import com.drcoffee.drcoffeemall.entry.CssOrientation;
import com.drcoffee.drcoffeemall.entry.Explosion;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/*
* 爆炸图
* */
public interface ExplosionService {

    /* 根据Id查询爆炸图 */
    Map<String, Object> getExplosionById(Integer id);

    /* 根据机器Id查询爆炸图 */
    ResponseEntity<Object> getExplosionByMachineId(Integer machine_id);

    /* 查询包插图关联的定位点 */
    Map<String, Object> getCssOrientation(Integer id);

//    Map<String, Object> fileUpload(MultipartFile file, String name, Integer machineId) throws IOException;

    /* 添加爆炸图 */
    Map<String, Object> addExplosion(Explosion explosion);

    Map<String, Object> deleteExplosion(Explosion explosion);

    Map<String, Object> addCssOrientation(Integer explosion_id);

    Map<String, Object> setCssOrientation(CssOrientation cssOrientation);

    ResponseEntity<Object> dotSetExplosion(Integer id, Integer decompose_id) ;


    /* 删除定位点 */
    Map<String, Object> deleteCssOrientation(Integer id);

    /* 定位点取消分解 */
    Map<String, Object> setDismantleN(Integer id);

    /* 定位点绑定配件 */
    ResponseEntity<Object> bindPart(Integer dotId, List<String> attachments);

    ResponseEntity<Object> insertData(MultipartFile file, String fileName, Map<String, Object> stringObjectMap);


}
